# coding=utf-8
"""
后端渲染用
继承于react python
"""
from react.render_server import render_server


def render(path, props=None, to_static_markup=False, renderer=render_server,
    request_headers=None, timeout=None):
    """
    页面渲染
    path传url路径
    """
    return renderer.render(path, props, to_static_markup, request_headers, timeout=timeout)
